import Instance from "@/utils/http.ts";
const BASE_URL = `/sys-user/`
export function useGetUserList(current:number,pageSize:number) {
    return Instance({
        url:BASE_URL+`all`,
        method:'GET',
        params:{
            current,
            pageSize,
        }
    })
}

//根据Id获取用户信息
export function useGetUserById(id:number) {
    return Instance({
        url:BASE_URL+`${id}`,
        method:'GET',
    })
}